@extends('layouts.app')

@section('content')
<div class="container public-fontsize">
    <div class="row clear">
        <div class="col-xs-12">
        	<!--carousel-->
        	<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
			  <!-- Wrapper for slides -->
			  <div class="carousel-inner" role="listbox">
			    <a href="#1" class="item active">
			     <img src="{{ asset('images/img3.png') }}" alt="...">
			     <div class="carousel-caption">
			       1
			     </div>
			   </a>
			   <a href="#2" class="item">
			     <img src="{{ asset('images/img3.png') }}" alt="...">
			     <div class="carousel-caption">
			       2
			     </div>
			   </a>
			  </div>
			    
			  <!-- Controls -->
			  <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
			    <span class="glyphicon glyphicon-chevron-left"></span>
			    <span class="sr-only">Previous</span>
			  </a>
			  <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
			    <span class="glyphicon glyphicon-chevron-right"></span>
			    <span class="sr-only">Next</span>
			  </a>
			</div>
        	<!--carousel over-->
        </div>
    </div>
    <div class="row">
    	<p class="col-xs-12 textAlign hotStyRed"><img src="{{ asset('images/hot.png') }}" alt="火热活动" width="32" height="32">火热活动</p>
		@foreach($activity as $vo)
    	<div class="hot-list col-xs-12">
    		<div class="col-xs-5 liHeight"><span class="coloStyOragin">活动名称</span><br><span class="coloStyOragin">活动金额</span></div>
    		<div class="col-xs-5 liHeight">{{$vo->name}}<br>{{$vo->money}}</div>
    		<a class="col-xs-2 btn btn-danger btn-sm mtop" href="{{url('show_activity',array('id'=>$vo->id))}}">详情</a>
    		<div class="col-xs-12 borderTop liHeight coloSty2">起止时间：<?php echo date('Y-m-d',$vo->start_time);?>-<?php echo date('Y-m-d',$vo->end_time);?></div>
    	</div>
		@endforeach
    </div>
	
</div>
@endsection
